/**
 * 
 */
package com.tx.core.extend;

/**
 * 
 * @author wanghy
 * @since 2013-6-7
 * 
 */
public class CloneTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Employee original = new Employee("John", 50000);
			original.setHireDay(2013, 05, 31);
			
			Employee copy = original.clone();
			copy.raiseSalary(10);
			copy.setHireDay(2013, 06, 06);
			System.out.println("original=" + original);
			System.out.println("copy=" + copy);
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
	}
	
}
